<template>
  <div>
    <h3>女人组件</h3>
    <div>金钱：{{ num }}</div>
    <button @click="buyLipstickAsync(10)">买口红-10</button>
  </div>
</template>

<script>
import { mapActions, mapState } from "vuex";
export default {
  computed: { ...mapState(["num"]) },

  methods: {
    ...mapActions(["buyLipstickAsync"]),
  },
};
</script>

<style></style>
